﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ImageProcessing.Model.LogModel
{
    /// <summary>
    /// 日志配置实体
    /// ErLin Li
    /// 2021/4/15
    /// </summary>
    public class LogModel
    {
        /// <summary>
        /// id
        /// </summary>
        public Guid s_pid = Guid.NewGuid();

        /// <summary>
        /// 时间
        /// </summary>
        public DateTime dt_time = DateTime.Now;

        /// <summary>
        /// 日志级别
        /// </summary>
        public string s_level = "INFO";

        /// <summary>
        /// 应用名称
        /// </summary>
        public string svc_name = "GenerationCenter";

        /// <summary>
        /// 调用链标识
        /// </summary>
        public string trace_id { get; set; }

        /// <summary>
        /// 调用层级标识
        /// </summary>
        public string span_id { get; set; }

        /// <summary>
        /// 用户标识
        /// </summary>
        public string user_id { get; set; }

        /// <summary>
        /// 业务标识
        /// </summary>
        public string biz_id { get; set; }

        /// <summary>
        /// 线程名称
        /// </summary>
        public string thread_name { get; set; }

        /// <summary>
        /// 日志记录器名称
        /// </summary>
        public string class_name { get; set; }

        /// <summary>
        /// 日志消息体
        /// </summary>
        public LogModel_Message log_message { get; set; }
    }

    public class LogModel_Message
    {
        /// <summary>
        /// 动作
        /// </summary>
        public string action { get; set; }

        /// <summary>
        /// 手写的信息
        /// </summary>
        public string handwriting_info { get; set; }

        /// <summary>
        /// 系统的信息
        /// </summary>
        public object sys_info { get; set; }
    }
}